import { AxiosAccount } from '../utils/http/request';

//支付配置管理
enum payApi {
  list = '/payment/pay-config/list',
  add = '/payment/pay-config/add',
  detail = '/payment/pay-config/detail',
  edit = '/payment/pay-config/edit',
  delete = '/payment/pay-config/delete',
}

//支付配置列表
export const payList = (data: any) =>
  AxiosAccount.request({
    url: payApi.list,
    method: 'post',
    data,
  });
//支付配置添加
export const payAdd = (data: any) =>
  AxiosAccount.request({
    url: payApi.add,
    method: 'post',
    data,
  });
//支付配置详情
export const payDetail = (data: any) =>
  AxiosAccount.request({
    url: payApi.detail,
    method: 'post',
    data,
  });
//支付配置修改
export const payEdit = (data: any) =>
  AxiosAccount.request({
    url: payApi.edit,
    method: 'post',
    data,
  });
//支付配置删除
export const payDelete = (data: any) =>
  AxiosAccount.request({
    url: payApi.delete,
    method: 'post',
    data,
  });
